package com.mic.yzzn.plc.model;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class PLCStatusResponse extends PLCResponse {

	private Map<String, PLCStatusData> dataMap;

	public PLCStatusResponse() {
		super();
	}

	public PLCStatusResponse(Date time, int status, Map<String, PLCStatusData> dataMap) {
		super(time, status);
		this.dataMap = dataMap;
	}

	@Override
	public String toString() {
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append("PLCStatusResponse" + "\n");
		for (String key : dataMap.keySet()) {
			stringBuffer.append(key + ": " + dataMap.get(key) + "\n");
		}
		stringBuffer.append("---------------------");
		return stringBuffer.toString();
	}

	// getters and setters

	public Map<String, PLCStatusData> getDataMap() {
		return dataMap;
	}

	public void setDataMap(Map<String, PLCStatusData> dataMap) {
		this.dataMap = dataMap;
	}

}
